package com.maimao.core.constant;

/**
 * @author MaoLin Wang
 * @date 2020/12/1 10:43 上午
 */
public class RedisKeys {

    public static final String USER_TOKEN = "user_token:";
    public static final String CATEGORY_KEY = "mm:cate";
    /**
     * 登录时存储图片验证码的前缀
     */
    public static final String LOGIN_PREFIX = "mm:l:";
    /**
     * 登录时存储手机验证码的前缀
     */
    public static final String LOGIN_MOBILE_PREFIX = "mm_login_mobile:";
    public static final String REPEAT_LOGIN = "%s:%s";
    public static final String SPEC_DETAIL = "spec_detail";
    public static final String REGION_TREE = "region_tree";
    public static final String FOOT = "foot_%s";
    /**
     * 商品评论热词 %s:商品id
     */
    public static final String SHOP_COMMENT_HOT_KEY = "com_hot_%s";
    public static final String GOODS_CLICK_COUNT = "mm:goods_click_count_%s";

    //////////安全相关////////////
    /**
     * 修改密码生成的UUID %s:用户id
     */
    public static final String UPDATE_PWD_UID = "upwd_%s";

    /**
     * 安全中心操作(如修改密码、找回密码时)手机验证码
     */
    public static final String SECURITY_OPERATION_MOBILE_CODE = "security_mobile_";

    /**
     * 安全中心操作(如修改密码、找回密码时)邮箱验证码
     */
    public static final String SECURITY_OPERATION_EMAIL_CODE = "security_email_";

    /**
     * 用户已验证的KEY
     */
    public static final String VALIDATED = "validated_";
    public static final String BANK_TREE = "bankTree";
    public static final String BANK_PROVINCE = "bankProvince";
    public static final String BANK_CITY = "bankCity";
}
